#include "TranslateNode.h"

TranslateNode::TranslateNode(void)
{
}

TranslateNode::TranslateNode(float fxIn, float fyIn, float fzIn)
{
	fx = fxIn;
	fy = fyIn;
	fz = fzIn;
}

TranslateNode::TranslateNode(Location loc)
{
	fx = loc.getVal(0);
	fy = loc.getVal(1);
	fz = loc.getVal(2);
}

TranslateNode::TranslateNode(Vect3D* pTrans)
{
	fx = pTrans->x;
	fy = pTrans->y;
	fz = pTrans->z;
}
void TranslateNode::set(float fxIn, float fyIn, float fzIn)
{
	fx = fxIn;
	fy = fyIn;
	fz = fzIn;
}
void TranslateNode::setX(float fX)
{
	fx = fX;
}
void TranslateNode::setY(float fY)
{
	fy = fY;
}
void TranslateNode::setZ(float fZ)
{
	fz = fZ;
}
TranslateNode::~TranslateNode(void)
{
}

void TranslateNode::Transform(LPD3DXMATRIXSTACK mStack)
{
	mStack->TranslateLocal(fx, fy, fz);
}